package com.tedu.day04mybatis.pojo;

import java.util.Date;

public class User {
    //在数据库中默认值可以为NULL
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    private Date created;

    public User() {
    }
    public User(Integer age, Date created, Integer id, String nickname, String password, String username) {
        this.age = age;
        this.created = created;
        this.id = id;
        this.nickname = nickname;
        this.password = password;
        this.username = username;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getNickname() {
        return nickname;
    }
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age + '\'' +
                ", created=" + created +
                '}';
    }
}


